find the time it takes for a ball to hit the ground